package interpreter.practice_02;

import java.util.HashMap;

/**
 * @author yi qiang
 * @date 2021/6/20 21:57
 */
public class ValExpression extends AbstractExpression {

    private String key;

    ValExpression(String key){
        this.key=key;
    }


    @Override
    public int interpreter(HashMap<String,Integer> val) {
        return val.get(key);
    }
}
